package com.crazypos.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
public class UserEntity extends BaseEntity{

    @TableId(value="id",type= IdType.ASSIGN_UUID)
    private String id;

    @TableField("name")
    private String name;

    @TableField("account")
    private String account;

    @TableField("password")
    private String password;

    @TableField("pin")
    private String pin;

    @TableField("type")
    private String type;

    @TableField("admin_id")
    private String adminId;

    @TableField("organization_id")
    private String organizationId;

    @TableField("email")
    private String email;

    @TableField("phone_number")
    private String phoneNumber;

    @TableField("last_login_at")
    private Date lastLoginAt;

    @TableField("address")
    private String address;

    @TableField("email_verified_at")
    private Date emailVerifiedAt;

    @TableField("avatar")
    private String avatar;

    @TableField("branch_id")
    private String branchId;

    @TableField("cash_register_id")
    private String cashRegisterId;

    @TableField("mode")
    private String mode;

    @TableField("lang")
    private String lang;

    @TableField("is_active")
    private Integer isActive;

    @TableField("user_status")
    private Integer userStatus;

}
